package mango.orm.entity.maker;

public class OracleTable2Java {
    public static void main(String[] args) {
        try {
            if (args.length != 3) {
                println("用法：");
                println("");
                println("    java OracleTable2Java PackageName DestPath TableNames");
                println("");
                println("其中：");
                println("    PackageName  生成Java类的包名");
                println("    DestPath     生成Java类的目标路径");
                println("    TableName  需要生成Java类的表");
                println("");
                println("示例：");
                println("");
                println("    java PDM2Java river.beans D:/src Table1");
                println("    java PDM2Java river.beans D:/src Table1,Table2");
                return;
            }
            Maker.executeOracleTable(args[0], args[1], args[2]);
        }
        catch (Exception e) {
            e.printStackTrace();
        }
    }
    
    private final static void println(String str) {
        System.out.println(str);
    }
}
